package guowei.guliorder.order.feign;

import guowei.common.utils.R;
import guowei.guliorder.order.vo.OrderStorageLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("guliStorage")
public interface StorageFeign {

    @PostMapping("/storage/waresku/ware/ids")
    public R getInfoBySkuIds(@RequestBody List<Long> ids);

    @GetMapping("/storage/waresku/fare")
    public R getAddrAndFareByAddrId(@RequestParam("addrId") Long addrId);

    @PostMapping("/storage/waresku/lock/order/orderitems")
    public R lockItemStorage(@RequestBody OrderStorageLockVo lockVo);
}
